//
//  SESyndromeDTO.m
//  kuaiyi
//
//  Created by Alphts on 16/7/7.
//  Copyright © 2016年 Alphts. All rights reserved.
//

#import "SESyndromeDTO.h"

@implementation SESyndromeDTO


+ (instancetype)modelWithDictionary:(NSDictionary *)dict{
    
    SESyndromeDTO *model = [[SESyndromeDTO alloc] init];
    
    [model setValuesForKeysWithDictionary:dict];
    
    return model;
    
}

+ (NSArray<SESyndromeDTO *> *)modelArray{
    
    NSString *filePath = [[NSBundle mainBundle] pathForResource:@"Syndrome.plist" ofType:nil];
    
    NSArray *tempArray = [NSArray arrayWithContentsOfFile:filePath];
    
    NSMutableArray *mArray = [NSMutableArray array];
    
    [tempArray enumerateObjectsUsingBlock:^(NSDictionary *  _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
        
        SESyndromeDTO *model = [SESyndromeDTO modelWithDictionary:obj];
        [mArray addObject:model];
        
    }];
    
    return mArray.copy;
}



@end
